package com.freedom.start.common.runner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: zhenggang.liu
 * @Date: 2020/4/16 17:12
 */
// @Component
public class MyCommandLineRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        System.out.println("==========自定义CommandLineRunner接口==========");
        for (String arg : args) {
            System.out.println("MyCommandLineRunner arg : " + arg);
        }
        System.out.println("=========自定义CommandLineRunner接口==========");

    }
}
